package ldh.fx.adminfx.util;

public class StringUtil {

    public static boolean isNull(String  str) {
        return str == null || str.trim().equals("");
    }

    public static boolean isNotNull(String  str) {
        return str != null && !str.trim().equals("");
    }

    public static Object getDefaultValue(Object obj, Object defaultObj) {
        if (obj == null) return defaultObj;
        return obj;
    }
}
